package com.youuvs.basic.mapper;

import com.youuvs.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    List<T> findAll();

    T findById(Long id);

    void delete(Long id);

    void insert(T t);

    void update(T t);
    //查询总条数
    Integer queryCount(BaseQuery query);
    //查询当前页的数据
    List<T> queryData(BaseQuery query);

    void patchDel(List<Long> ids);
}
